package com.kld.data.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 数据转换任务对象 sys_trans
 *
 * @author ruoyi
 * @date 2020-12-03
 */
@Data
public class SysTransVo {
    private static final long serialVersionUID = 1L;

    /**
     * 转换 id
     */
    private String id;

    /**
     * 任务名称
     */
    private String taskName;

    /**
     * 任务描述
     */
    private String taskDesc;

    /**
     * 任务状态 0 停止 1运行
     */
    private String taskStatus;

    /**
     * 任务周期，时间表达式
     */
    private String cronExpression;

    /**
     * 上次任务执行时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastExecTime;

    /**
     * 上次执行结果 0 失败 1成功
     */
    private Integer lastExecResult;

    /**
     * 源数据源连接id
     */
    private String sourceId;

    /**
     * 源数据源连接名称
     */
    private String sourceName;

    /**
     * 表输入SQL
     */
    private String tableInputSql;

    /**
     * 0 不需要Java，1需要Java代码
     */
    private boolean isNeedJava;

    private String outputType;

    /**
     * Java代码
     */
    private String javaCode;

    /**
     * 目标数据源连接id
     */
    private String targetId;

    /**
     * 目标数据源连接名称
     */
    private String targetName;

    /**
     * 目标表名
     */
    private String tableName;

    /**
     * 源数据集合主键
     */
    private String lookupKey;

    /**
     * 关联标识符
     */
    private String conditionKey;

    /**
     * 目标数据集合主键
     */
    private String streamKey;

    /**
     * 源数据集合列名，按顺序以逗号隔开
     */
    private String lookupColums;

    /**
     * 目标数据集合列名，按顺序以逗号隔开
     */
    private String streamColums;

    /**
     * 例外数据集合列名，按顺序以逗号隔开
     */
    private String exceptionColums;

    /**
     * 更新
     */
    private String updateUser;

    /**
     * 是否显示 1显示
     */
    private String isView;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskDesc(String taskDesc) {
        this.taskDesc = taskDesc;
    }

    public String getOutputType() {
        return outputType;
    }

    public void setOutputType(String outputType) {
        this.outputType = outputType;
    }

    public String getTaskDesc() {
        return taskDesc;
    }

    public void setTaskStatus(String taskStatus) {
        this.taskStatus = taskStatus;
    }

    public String getTaskStatus() {
        return taskStatus;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setLastExecTime(Date lastExecTime) {
        this.lastExecTime = lastExecTime;
    }

    public Date getLastExecTime() {
        return lastExecTime;
    }

    public void setLastExecResult(Integer lastExecResult) {
        this.lastExecResult = lastExecResult;
    }

    public Integer getLastExecResult() {
        return lastExecResult;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

    public String getSourceName() {
        return sourceName;
    }

    public void setTableInputSql(String tableInputSql) {
        this.tableInputSql = tableInputSql;
    }

    public String getTableInputSql() {
        return tableInputSql;
    }

    public boolean getIsNeedJava() {
        return isNeedJava;
    }

    public void setIsNeedJava(boolean isNeedJava) {
        this.isNeedJava = isNeedJava;
    }

    public void setJavaCode(String javaCode) {
        this.javaCode = javaCode;
    }

    public String getJavaCode() {
        return javaCode;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetName(String targetName) {
        this.targetName = targetName;
    }

    public String getTargetName() {
        return targetName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setLookupKey(String lookupKey) {
        this.lookupKey = lookupKey;
    }

    public String getLookupKey() {
        return lookupKey;
    }

    public void setConditionKey(String conditionKey) {
        this.conditionKey = conditionKey;
    }

    public String getConditionKey() {
        return conditionKey;
    }

    public void setStreamKey(String streamKey) {
        this.streamKey = streamKey;
    }

    public String getStreamKey() {
        return streamKey;
    }

    public void setLookupColums(String lookupColums) {
        this.lookupColums = lookupColums;
    }

    public String getLookupColums() {
        return lookupColums;
    }

    public void setStreamColums(String streamColums) {
        this.streamColums = streamColums;
    }

    public String getStreamColums() {
        return streamColums;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public String getIsView() {
        return isView;
    }

    public void setIsView(String isView) {
        this.isView = isView;
    }

    public String getExceptionColums() {
        return exceptionColums;
    }

    public void setExceptionColums(String exceptionColums) {
        this.exceptionColums = exceptionColums;
    }

}
